﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Win32;
using UserControl = System.Windows.Controls.UserControl;

namespace CSVFormater
{
    /// <summary>
    /// OpenFileDialogControl.xaml 的交互逻辑
    /// </summary>
    public partial class OpenFileDialogControl : UserControl
    {
        public string Path;

        public OpenFileDialogControl()
        {
            InitializeComponent();
            Path = "";
        }

        private void openfile_Click(object sender, RoutedEventArgs e)
        {
            var openFileDialogCsv = new FolderBrowserDialog();
            if (openFileDialogCsv.ShowDialog() == DialogResult.OK)         
            {
                pathName.Text = openFileDialogCsv.SelectedPath;
                Path = pathName.Text;
            }
        }

    }
}
